#pragma once

#include "../3rdparty/hge181/include/hgegui.h"
#include "font_object.h"


class CTextButton
    : public hgeGUIObject
{
public:
    CTextButton(int buttonID, float x, float y, char* text, int size);
    ~CTextButton();

    virtual void	Render();

    virtual void	MouseOver(bool bOver);

    virtual bool	MouseLButton(bool bDown);


    void SetColor(DWORD color) { m_color = color; }
    void SetFocusColor(DWORD color) { m_focusColor = color; }
    void SetClickColor(DWORD color) { m_clickColor = color; }

private:
    
    GfxFont* m_font;
    float m_x;
    float m_y;
    float m_renderX;
    float m_renderY;
    DWORD m_color;
    DWORD m_focusColor;
    DWORD m_clickColor;
    DWORD m_currentColor;
    char* m_text;
    
};

